var speed=20;
var tab=document.getElementById("cslide");
var tab1=document.getElementById("box1");
var tab2=document.getElementById("box2");
tab2.innerHTML=tab1.innerHTML;
function marquee(){
    if (tab2.offsetWidth-tab.scrollLeft<=0)
        tab.scrollLeft-=tab1.offsetWidth
    else
        tab.scrollLeft++;
}
var obj = setInterval(marquee,speed);
tab.onmouseover = function() {
    clearInterval(obj)
};
tab.onmouseout = function() {
    obj = setInterval(marquee,speed)
};
